\doxysection{Tree\+Node\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>} Struct Template Reference}
\hypertarget{struct_tree_node}{}\label{struct_tree_node}\index{TreeNode$<$ T $>$@{TreeNode$<$ T $>$}}


节点结构结构体（模板类，支持任意数据类型\+T）  




{\ttfamily \#include $<$my\+\_\+tree.\+h$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{struct_tree_node_a04c315e7d9af382fa471a9d3858e8c72}{Tree\+Node}} (T d=T(), int p=-\/1, int fc=-\/1, int ns=-\/1)
\begin{DoxyCompactList}\small\item\em 构造函数 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{struct_tree_node_a4d005de6a3d939c3b379b2cba09da0d3}\label{struct_tree_node_a4d005de6a3d939c3b379b2cba09da0d3} 
T {\bfseries data}
\item 
\Hypertarget{struct_tree_node_ab99a9346cbbbfb93e25204e75f06d090}\label{struct_tree_node_ab99a9346cbbbfb93e25204e75f06d090} 
int {\bfseries parent}
\item 
\Hypertarget{struct_tree_node_a592121080fa237e5085883aa59992081}\label{struct_tree_node_a592121080fa237e5085883aa59992081} 
int {\bfseries first\+\_\+child}
\item 
\Hypertarget{struct_tree_node_a0abef096ecf053833cf5b6bb721fa420}\label{struct_tree_node_a0abef096ecf053833cf5b6bb721fa420} 
int {\bfseries next\+\_\+sibling}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
struct Tree\+Node$<$ T $>$}
节点结构结构体（模板类，支持任意数据类型\+T） 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & 二叉树节点存储的数据类型 \\
\hline
\end{DoxyTemplParams}
\begin{DoxyNote}{Note}
统一采用孩子双亲表示法这样感觉好一点 
\end{DoxyNote}


\label{doc-constructors}
\Hypertarget{struct_tree_node_doc-constructors}
\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{struct_tree_node_a04c315e7d9af382fa471a9d3858e8c72}\index{TreeNode$<$ T $>$@{TreeNode$<$ T $>$}!TreeNode@{TreeNode}}
\index{TreeNode@{TreeNode}!TreeNode$<$ T $>$@{TreeNode$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{TreeNode()}{TreeNode()}}
{\footnotesize\ttfamily \label{struct_tree_node_a04c315e7d9af382fa471a9d3858e8c72} 
template$<$typename T$>$ \\
\mbox{\hyperlink{struct_tree_node}{Tree\+Node}}$<$ T $>$\mbox{\hyperlink{struct_tree_node}{\+::\+Tree\+Node}} (\begin{DoxyParamCaption}\item[{T}]{d}{ = {\ttfamily T()}, }\item[{int}]{p}{ = {\ttfamily -\/1}, }\item[{int}]{fc}{ = {\ttfamily -\/1}, }\item[{int}]{ns}{ = {\ttfamily -\/1}}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



构造函数 


\begin{DoxyParams}{Parameters}
{\em d} & 当前节点值 \\
\hline
{\em p} & 双亲索引 \\
\hline
{\em fc} & 第一个孩子的索引 \\
\hline
{\em ns} & 下一个兄弟的索引 \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
统一采用孩子双亲表示法 
\end{DoxyNote}


The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
my\+\_\+tree.\+h\end{DoxyCompactItemize}
